package com.micro.school.h5.domin;

import com.micro.school.common.core.annotation.Excel;
import com.micro.school.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支付单明细对象 pay_student_fee_payment_detail
 * 
 * @author lyb
 * @date 2025-08-19
 */
@Data
public class PayStudentFeePaymentH5Detail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 支付ID */
    @Excel(name = "支付ID")
    private Long paymentId;

    /** 学生收费管理明细ID */
    @Excel(name = "学生收费管理明细ID")
    private Long studentFeeItemId;

    /** 支付单号 */
    @Excel(name = "支付单号")
    private String payNo;

    /** 商户id */
    @Excel(name = "商户id")
    private Long merchantPkId;

    /** 收费项目id */
    @Excel(name = "收费项目id")
    private Long feeItemConfigId;

    /** 收费项目名称 */
    @Excel(name = "收费项目名称")
    private String feeItemConfigName;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal itemPrice;

    /** 数量 */
    @Excel(name = "数量")
    private Long itemQuantity;

    /** 小计金额 */
    @Excel(name = "小计金额")
    private BigDecimal totalAmount;

    /** 预缴费抵扣金额 */
    @Excel(name = "预缴费抵扣金额")
    private BigDecimal prepaymentDeducted;

    /** 使用的预缴记录ID */
    @Excel(name = "使用的预缴记录ID")
    private String usedPrepaymentId;

    /** 应通过第三方支付的金额 */
    @Excel(name = "应通过第三方支付的金额")
    private BigDecimal actualAmount;

    /** 实际支付金额（第三方成功到账金额） */
    @Excel(name = "实际支付金额", readConverterExp = "第=三方成功到账金额")
    private BigDecimal paidAmount;

    private Long payMethod;

    private Date createTime;
}
